import service from "@/utils/request";

const groupPrefix = "/dorm"


// @Summary 获取楼列表
// @Produce  application/json
// @Router /buildings [get]
export const buidings = () => {
  return service({
    url: groupPrefix + "/buildings",
    method: "get",
  })
}

export const buildingsStatus = () => {
  return service({
    url: groupPrefix + "/buildingsStatus",
    method: "get",
  })
}

export const user2RoomInfo = () => {
  return service({
    url: groupPrefix + "/user2RoomInfo",
    method: "get",
  })
}

export const postCheckOutRoom = (data) => {
  return service({
    url: groupPrefix + "/checkOutRoom",
    method: "post",
    data: data,
  })
}